package cloud.topdaddy.admin.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * 部门表
 *
 * @author topdaddy
 * @since 2025-07-01 14:22:43
 */
@Data
@TableName("sys_dept")
@EqualsAndHashCode(callSuper = true)
public class SysDept extends Model<SysDept> {

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long departmentId;

    /**
     * 部门名称
     */
    @Schema(description = "部门名称")
    private String departmentName;

    /**
     * 负责人员工 id
     */
    @Schema(description = "负责人员工 id")
    private Long managerId;

    /**
     * 部门父级id
     */
    @Schema(description = "部门父级id")
    private Long parentId;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;


    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;


}
